package com.feeyo.prophet.pojo.action;

import com.feeyo.llm.util.JsonUtil;
import lombok.Data;

import java.util.Map;

/**
 * 示例
 */
@Data
public class ActionExample {

    /**
     * 问题
     */
    private String question;

    /**
     * 想法
     */
    private String thought;

    /**
     * 使用的action
     */
    private String action;

    /**
     * action的输入
     */
    private Map<String, String> actionInput;

    /**
     * 答案
     */
    private String observation;


    @Override
    public String toString() {
        if(question == null){
            return null;
        }
        return "Question: "+question+" "
                + "Thought: "+thought+" "
                + "Action: "+action+" "
                + "Action Input: "+ JsonUtil.marshalToString(actionInput) +" "
                + "Observation: "+observation+" ";
    }
}
